package cn.alcatraz.feign;

import cn.alcatraz.domain.AjaxResult;
import cn.alcatraz.domain.Store;
import cn.alcatraz.feign.impl.feignClientsImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient(value = "store-server",fallbackFactory = feignClientsImpl.class)
public interface feignClients {

    @PostMapping("/store")
    AjaxResult save(@RequestBody Store store);
}
